package config

import (
	"github.com/zeromicro/go-zero/rest"
)

type Config struct {
	rest.RestConf
	DataSource string
	Auth       struct {
		AccessSecret string
		AccessExpire int64
	}
	WxApp struct {
		Appid    string
		Secret   string
		LoginUri string
	}
	Redis struct {
		Host     string
		Port     uint16
		Password string
	}
	RedisPool struct {
		Host        string
		Port        string
		MaxIdle     int // 最初连接数
		MaxActive   int // 连接池最大连接数量,不确定可以用0（0表示自动定义），按需分配
		IdleTimeout int
	}
	AliOss struct {
		Endpoint        string
		AccessKeyId     string
		AccessKeySecret string
		BucketName      string
	}
	Mongodb struct {
		Url      string
		DbSocial string
	}
	WsPool struct {
		MaxSize int
		Url     string
	}
	MengyuanApi struct {
		Url string
		Key string
	}
	Feishu struct {
		EduWebHook string
	}
	JixiangYun struct {
		AccessKey string
		SecretKey string
	}

	SplitBill struct {
		Money int
		Wx    string
		Ali   string
	}

	BaiduTTS struct {
		AppId     string
		APIKey    string
		SecretKey string
		//ClientId     string
		//ClientSecret string
	}
}
